<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<style>
    .h{
        height: 100px;
        width: 100%;
        background-color: rgb(20, 121, 215);
    }
    .p{
        height: 100px;
        width: 123px;
        display: inline-block;
    }
    .p p{
        text-align: center;
        font-size: 32px;
        color: white;
    }
    .p:hover{
        background-color: rgb(128, 128, 128);
    }
</style>

    <div class="h">
        <div class="p"><p>新闻</p></div>
        <div class="p"><p>新闻</p></div>
        <div class="p"><p>新闻</p></div>
        <div class="p"><p>新闻</p></div>
        <div class="p"><p>新闻</p></div>
        <div class="p"><p>新闻</p></div>
    </div>
</body>
</html>